<template>
  <el-card shadow="never">
    <el-form :model="form" label-width="100px">
      <el-row :gutter="16">
        <el-col>
          <el-form-item label="通知类型：">
            <el-radio-group size="small" v-model="form.mesType">
              <el-radio-button :label="0">系统通知</el-radio-button>
              <el-radio-button :label="1">系统公告</el-radio-button>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="通知分类：">
            <el-select clearable v-model="form.mesReceive">
              <el-option label="接收人" :value="0" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发送对象：">
            <el-radio-group size="small" v-model="form.mesType">
              <el-radio-button :label="0">部门</el-radio-button>
              <el-radio-button :label="1">岗位</el-radio-button>
              <el-radio-button :label="2">人员</el-radio-button>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col>
          <el-form-item label="接收人：">
            <el-select clearable style="width: 100%" v-model="form.mesReceive">
              <el-option label="接收人" :value="0" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="发送方式：">
            <el-radio-group size="small" v-model="form.sendType">
              <el-radio-button :label="0">立即</el-radio-button>
              <el-radio-button :label="1">定时</el-radio-button>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="发送短信：">
            <el-radio-group size="small" v-model="form.smsFlag">
              <el-radio-button :label="0">是</el-radio-button>
              <el-radio-button :label="1">否</el-radio-button>
            </el-radio-group>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="发送时间：">
            <el-input v-model="form.time" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-divider />
      <el-row :gutter="16">
        <el-col>
          <el-form-item label="标题：">
            <el-input v-model="form.title" placeholder="请输入标题" />
          </el-form-item>
        </el-col>
        <el-col>
          <el-form-item label="概述：">
            <el-input v-model="form.desc" placeholder="请输入标题" />
          </el-form-item>
        </el-col>
        <el-col>
          <el-form-item label="附件：">
            <span>111</span>
          </el-form-item>
        </el-col>
        <el-col>
          <el-form-item label="内容：">
            <el-input type="textarea" :rows="4" placeholder="请输入内容" v-model="form.content"></el-input>
          </el-form-item>
        </el-col>
        <el-col class="tl-center">
          <el-button type="primary" @click="handleSubmit">提交</el-button>
        </el-col>
      </el-row>
    </el-form>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      form: {}
    }
  },
  methods: {
    handleSubmit() {}
  }
}
</script>
